# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-email-address-list
pkgver=0.06
pkgrel=4
pkgdesc="RFC close address list parsing"
url="https://metacpan.org/release/Email-Address-List/"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
depends="perl perl-email-address"
makedepends="perl-json perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BP/BPS/Email-Address-List-$pkgver.tar.gz"
builddir="$srcdir/Email-Address-List-$pkgver"

# secfixes:
#   0.06-r0:
#     - CVE-2018-18898

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="8a173198bed7b5bf41801de9713f424459366b937493bb15c0362843cfe78ca02ce2709f2fe31f3fd61752c0d52956b059e09c3becdbfab0887e9efae6112141  Email-Address-List-0.06.tar.gz"
